/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.bomt.domain.request;

import com.comac.ins.bomt.domain.vo.DetailStrengthBomVo;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 强度数模清单修改请求
 *
 * @author zhanghongyi
 * @date 2024/8/23
 * @description StrengthBomDetailModifyRequest
 */
@Data
public class StrengthBomDetailModifyRequest {
    /**
     * 修改的清单明细
     */
    List<DetailStrengthBomVo> modifyDetails = new ArrayList<>();
    /**
     * 删除的明细Id列表
     */
    List<Long> deleteIds = new ArrayList<>();

    /**
     * 参数检查
     */
    public void checkParam() {
        modifyDetails.forEach(DetailStrengthBomVo::checkParam);
    }
}
